package perf.graph;

import perf.data.Run;

public class VertexRun extends Vertex {

	private final Run run;
	private final long totalruncost;
	
	public VertexRun( Run run ) {
		this.run = run;
		//TODO hardcoded index
		totalruncost = run.getCost(0);
	}
	
	@Override
	public String getLabel( ) {
		return run.getName();
	}
	
	@Override
	public String getPath() {
		return "";
	}
	
	public long getTotalCost( ) {
		return totalruncost;
	}
	
	public float getCostPercent( ) {
		//a run is always on the highest level
		//and this is always 100%
		return 100.0f;
	}

}
